
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:provider_demo/widget/landlord_appbar.dart';
import 'package:provider_demo/base/http/http.dart';


class MainPage extends StatefulWidget {
  const MainPage({super.key});

  @override
  State<MainPage> createState() => _MainPageState();
}

class _MainPageState extends State<MainPage> {
  @override
  void initState() async{
    // TODO: implement initState
    super.initState();

   Response response=await Http.getInstance().get("http://www.baidu.com", {});
   print(response.statusCode.toString());
  }

  @override
  Widget build(BuildContext context) {
    return  Scaffold(
      appBar: LandlordAppBar(title: '首页',canBack: false).build(context),
      body: Container(
        child: const SingleChildScrollView(
          child: Column(
            children: <Widget>[],
          ),
        ),
      ),
    );
  }
}
